//
// Created by liuyang on 2025/5/15.
//

#ifndef COMPUTERORDERSYSTEM_STUDENTCONTROLLER_H
#define COMPUTERORDERSYSTEM_STUDENTCONTROLLER_H
#include "BaseController.h"
#include "iostream"
#include "Student.h"
#include "../DB/DBMapper.h"
#include "Order.h"

using namespace std;
class StudentController: public BaseController{
public:
    Student student;
    StudentController(){};
    StudentController(Student s){
        student=s;
    };
    void showOptions() override;
    void showWindow() override;

    bool reserveRoom(int roomId, int reserveDayId, int reservePeriodId);

    vector<Order> showMyOrder(int studentId);

    vector<Order> showAllOrders();

    bool cancelOrder(int id);
};


#endif //COMPUTERORDERSYSTEM_STUDENTCONTROLLER_H
